export const api = {
  // 默认请求就是get请求
  GetOpenIdByCode: {
    url: "/mall/GetOpenIdByCode",
    name: "获取OpenId",
    method: "POST",
  },

  OnUserLogin: {
    url: "/mall/OnUserLogin",
    name: "小程序用户登录",
    method: "POST",
  },

  GetHomeData: {
    url: "/mall/GetHomeData",
    name: "获取首页数据",
    method: "POST",
  },

  GetGoodClassList: {
    url: "/mall/GetGoodClassList",
    name: "获取分类",
    method: "POST",
  },

  GetGoodsList: {
    url: "/mall/GetGoodsList",
    name: "获取商品列表",
    method: "POST",
  },

  GetGoodsDetail: {
    url: "/mall/GetGoodsDetails",
    name: "获取商品详情",
    method: "POST",
  },

  LoginByPhoneOneKey: {
    url: "/mall/LoginByPhoneOneKey",
    name: "手机号一键登录",
    method: "POST",
  },

  GetShopCart: {
    url: "/mall/GetShopCart",
    name: "获取购物车",
    method: "POST",
  },

  AddCart: {
    url: "/mall/AddCart",
    name: "放入购物车",
    method: "POST",
  },

  DelShoppingCart: {
    url: "/mall/DelShoppingCart",
    name: "删除购物车",
    method: "POST",
  },
  GetAddressList: {
    url: "/mall/GetAddressList",
    name: "获取收货地址",
    method: "POST",
  },
  DelAddress: {
    url: "/mall/DelAddress",
    name: "删除收货地址",
    method: "POST",
  },
  SaveAddress: {
    url: "/mall/SaveAddress",
    name: "保存收货地址",
    method: "POST",
  },
  GetAddressById: {
    url: "/mall/GetAddressById",
    name: "获取收货地址",
    method: "POST",
  },
  GetPay: {
    url: "/mall/GetPay",
    name: "获取支付方式",
    method: "POST",
  },
  DelCartGoods: {
    url: "/mall/DelCartGoods",
    name: "删除购物车产品",
    method: "POST",
  },
  UpCart: {
    url: "/mall/UpCart",
    name: "删除购物车产品",
    method: "POST",
  },
  AccExpMoney: {
    url: "/mall/AccExpMoney",
    name: "计算运费",
    method: "POST",
  },
  OrderSubmit: {
    url: "/mall/OrderSubmit",
    name: "提交订单",
    method: "POST",
  },
  GetMallPayment: {
    url: "/mall/GetMallPayment",
    name: "提交订单",
    method: "POST",
  },
  GetOrderList: {
    url: "/mall/GetOrderList",
    name: "获取订单列表",
    method: "POST",
  },
  CancelOrder: {
    url: "/mall/CancelOrder",
    name: "取消列表",
    method: "POST",
  },
  OrderDetail: {
    url: "/mall/OrderDetail",
    name: "订单详情",
    method: "POST",
  },
  ConfirmReceipt: {
    url: "/mall/ConfirmReceipt",
    name: "确认收货",
    method: "POST",
  },
  SetRenewalsPay: {
    url: "/mall/SetRenewalsPay",
    name: "获取微信支付信息",
    method: "POST",
  },
  GetCouponList: {
    url: "/mall/GetCouponList",
    name: "获取优惠券列表",
    method: "POST",
  },
  GetCouponById: {
    url: "/mall/GetCouponById",
    name: "获取优惠券详情",
    method: "POST",
  },
  GetStoreInfoByScene: {
    url: "/mall/GetStoreInfoByScene",
    name: "通过二维码获取店铺详情",
    method: "POST",
  },
  DelCart: {
    url: "/Mall/DelCart",
    name: "清空购物车",
    method: "POST",
  },
  SetDefaultAddress: {
    url: "/Mall/SetDefaultAddress",
    name: "设置默认地址",
    method: "POST",
  },
};
